//package com.huabo.monitor.controller;
//
//
//import com.hbfk.util.JsonBean;
//import com.huabo.monitor.service.TblAssessService;
//import com.huabo.monitor.service.TblAssessStaffService;
//import io.swagger.annotations.Api;
//import io.swagger.annotations.ApiParam;
//import org.springframework.web.bind.annotation.*;
//
//import javax.annotation.Resource;
//
//@RestController
//@Api(value = "评价评分", tags = {"评价评分相关"})
//@RequestMapping(value = "/nbkz")
//public class NKScoreController {
//
//    @Resource
//    private TblAssessService tblAssessService;
//
//    /**
//     * 评价评分
//     *
//     * @param
//     * @return
//     */
//    @GetMapping(value = "/pjgl/proj_task_gradelist")
//    public JsonBean proj_initiatePjgl(@ApiParam(name = "token", value = "登录用户token", required = true) @RequestHeader("token") String token,
//                                      @ApiParam(name = "pageNumber", value = "分页当前页数", required = false) @RequestParam(value = "pageNumber", required = false, defaultValue = "1") Integer pageNumber,
//                                      @ApiParam(name = "pageSize", value = "每页记录数", required = false) @RequestParam(value = "pageSize", required = false, defaultValue = "15") Integer pageSize,
//                                      @ApiParam(name = "assNumnber", value = "评价编号", required = false) @RequestParam(value = "assNumnber", required = false) String assNumnber,
//                                      @ApiParam(name = "assName", value = "评价姓名", required = false) @RequestParam(value = "assName", required = false)String assName,
//                                      @ApiParam(name = "startDate", value = "评价期限-开始时间", required = false) @RequestParam(value = "startDate", required = false)String startDate,
//                                      @ApiParam(name = "endDate", value = "评价期限-结束时间", required = false) @RequestParam(value = "endDate", required = false)String endDate) {
//
//        return tblAssessService.findByPage(pageNumber,pageSize,assNumnber,assName,startDate,endDate);
//
//    }
//
//    /**
//     * 评价 评分发起
//     * @param pageNumber
//     * @param selectedPlans
//     * @param request
//     * @return
//     */
//    @RequestMapping(value = "/pjgl/t08_proj_pingfen")
//    public JsonBean t08_proj_pingfen(Integer pageNumber, BigDecimal selectedPlans, HttpServletRequest request) {
//        if (null != selectedPlans) {
//            TblStaff user = (TblStaff) request.getSession().getAttribute("longUser");
//            pageBean = this.tblAssessStaffService.getTblAssessGroupOrg(selectedPlans, user.getStaffid(), pageNumber,
//                    pageBean.getPageSize());
//            // pageBean =
//            // this.tblAssessMarkService.findMarkByOrgGroup(selectedPlans,user.getStaffid(),
//            // pageNumber, pageBean.getPageSize());
//            // List<TblAssessMark> assessMarks = pageBean.getRecordList();
//            // for (TblAssessMark tblAssessMark : assessMarks) {
//            // List<TblAssessStaff> assessStaffs =
//            // this.tblAssessStaffService.findAssStaffByUserId(user.getStaffid(),tblAssessMark.getAssmarkid());
//            // if(assessStaffs.size()>0){
//            // tblAssessMark.setAssDateTime(assessStaffs.get(0).getAssDateTime());
//            // tblAssessMark.setAssStatus(assessStaffs.get(0).getStatus());
//            // }
//            // }
//            // pageBean.setRecordList(assessMarks);
//            request.getSession().setAttribute("selectedAssessPlanId", selectedPlans);
//            TblAssess assess = this.tblAssessService.get(selectedPlans);
//            // 为页面查找区域显隐藏赋值
//            String choiceSearch = request.getParameter("choiceSearch");
//            if (choiceSearch == null || "".equals(choiceSearch)) {
//                choiceSearch = "hide";
//            }
//            mav.addObject("choiceSearch", choiceSearch);
//            mav.setViewName("nbkz/pjgl/t08_proj_initiate_task");
//            mav.addObject("pageBean", pageBean);
//            mav.addObject("project", assess);
//        }
//        return mav;
//    }
//
//    /**
//     * 参评人 评分入口
//     *
//     * @param
//     * @return
//     */
//    @RequestMapping(value = "/pjgl/index")
//    public ModelAndView proj_index(String assId) {
//        ModelAndView mv = new ModelAndView("nbkz/pjgl/index");
//        String[] val = assId.split("#");
//        mv.addObject("assid", val[0]);
//        mv.addObject("orgId", val[1]);
//        // 为页面查找区域显隐藏赋值
//        String choiceSearch = request.getParameter("choiceSearch");
//        if (choiceSearch == null || "".equals(choiceSearch)) {
//            choiceSearch = "hide";
//        }
//        mv.addObject("choiceSearch", choiceSearch);
//        return mv;
//    }
//
//}
